package com.niiwoo.civet.mobile.vo.request.withhold;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author: liaozuliang
 * @date: 2018/5/12
 */
@Setter
@Getter
@ApiModel
public class CheckSMSCodeRequestVO {

    @NotNull(message = "请先获取验证码")
    @ApiModelProperty(value = "短信验证码订单ID", required = true)
    private Long orderId;

    @NotNull(message = "请输入验证码")
    @Pattern(regexp = "^[0-9]{4,8}$", message = "验证码只能是4到8位数字")
    @ApiModelProperty(value = "短信验证码", required = true)
    private String smsCode;
}
